﻿@{
    Layout = "";
}
@model ConfigurationModel
@using Nop.Plugin.Payments.WalletOne.Models;
@using Nop.Web.Framework;
@using (Html.BeginForm())
{
    <table class="adminContent">
        <tr>
            <td colspan="2">
				<b>@T("Plugins.Payments.WalletOne.Notes")</b>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.MerchantId):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.MerchantId)
                @Html.ValidationMessageFor(model => model.MerchantId)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.SecretKey):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.SecretKey)
                @Html.ValidationMessageFor(model => model.SecretKey)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.AvailablePaymentMethods):
            </td>
            <td class="adminData">
                <div style="height: 250px; width: 450px; overflow: auto; border: solid 1px #bbb;">
                    @foreach (var pmd in Model.AvailablePaymentMethods)
                    {
                        <input type="checkbox" name="CheckedPaymentMethods" value="@(pmd)" @(Model.PaymentMethodsOffered.Contains(pmd) ? Html.Raw(" checked=\"checked\"") : null) />
                        <label>@pmd</label><br />
                    }
                </div>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.AdditionalFee):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AdditionalFee)
                @Html.ValidationMessageFor(model => model.AdditionalFee)
            </td>
        </tr>
        <tr>
            <td colspan="2" width="100%">
                <button type="submit" name="save" value="save" class="t-button">@T("Admin.Common.Save")</button>
            </td>
        </tr>
    </table>
}